package cn.lj.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @file: MenuDto
 * @version: 1.0
 * @Description: MenuDto
 * 代码目的，作用，如何工作
 * @author: 李津
 * @date: 2021-05-23 10:55
 * 本代码要注意的事项、备注事项等
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MenuDto对象", description="菜单视图实体")
public class MenuDto implements Serializable {

    private Long id;
    @ApiModelProperty(value = "菜单名称")
    private String name;
    @ApiModelProperty(value = "菜单标题")
    private String title;
    @ApiModelProperty(value = "菜单图标")
    private String icon;
    @ApiModelProperty(value = "菜单URL")
    private String path;
    @ApiModelProperty(value = "组件地址")
    private String component;
    @ApiModelProperty(value = "子菜单集合")
    private List<MenuDto> children = new ArrayList<>();

}
